package com.gxdf.extendedcontrols.gxdfclient.components;

import android.os.Parcel;
import android.os.Parcelable;

public class GxdfStoredValues implements Parcelable{
	
	String formName;
	String fieldName;
	String index;
	String value;
	
	
	private GxdfStoredValues (Parcel in){
		formName = in.readString();
		fieldName = in.readString();
		index = in.readString();
		value = in.readString();
	}

	public GxdfStoredValues(String formName,String fieldName, String index,String value) {
		
		this.formName = formName;		
		this.fieldName = fieldName;
		this.index =  index;
		this.value = value;
	}

	public String getName() {
		return fieldName;
	}

	public void setName(String name) {
		this.fieldName = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
	
	public String getFormName() {
		return formName;
	}

	public void setFormName(String formName) {
		this.formName = formName;
	}

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public String getIndex() {
		return index;
	}

	public void setIndex(String index) {
		this.index = index;
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(formName);
		dest.writeString(fieldName);
		dest.writeString(index);
		dest.writeString(value);
		
	}
	
	public static final Parcelable.Creator<GxdfStoredValues> CREATOR
	= new Parcelable.Creator<GxdfStoredValues>() {
		
		public GxdfStoredValues createFromParcel(Parcel in){return new GxdfStoredValues(in);}
		public GxdfStoredValues[] newArray(int size){return new GxdfStoredValues[size];}
		
	};
	
	

}
